import CryptoES from 'crypto-es';

export function aeg45sa48ahbwegew(afsagvbs5ssv: string, asdv5a4dsv = ['gabghaedh54b4dae5gb', 'aegbdedbqhbwhbva56fagv', 'asfafwehgwrh564gehgqe']) {
  let rhhnr = '';
  asdv5a4dsv.forEach((vadsgvad) => {
    if (window) {
      const v = (window as any)?.[vadsgvad];
      if (v)
        rhhnr += v;
    }
  });
  const fgagaegv = CryptoES.enc.Utf8.parse(rhhnr);
  const gahgbr = CryptoES.enc.Utf8.parse(afsagvbs5ssv);
  const encrypted = CryptoES.AES.encrypt(gahgbr, fgagaegv, {
    mode: CryptoES.mode.ECB,
    padding: CryptoES.pad.Pkcs7,
  });
  return encrypted.toString();
}

export function md5Hash(devive: string) {
  return CryptoES.MD5(devive).toString();
}
